﻿using System;
using System.Collections.ObjectModel;

namespace CeskyRozhlasRT.DataModel
{
    public class StationsGroup
    {
        public StationsGroup(String uniqueId, String title, String subtitle, String imagePath, String description)
        {
            UniqueId = uniqueId;
            Title = title;
            Subtitle = subtitle;
            Description = description;
            ImagePath = imagePath;
            Items = new ObservableCollection<StationInfo>();
        }

        public StationsGroup()
        {
            Items = new ObservableCollection<StationInfo>();
        }


        // MemberCanBePrivate.Global is disabled, because resharper cannot spot those members used in XAML
        // ReSharper disable MemberCanBePrivate.Global
        // ReSharper disable UnusedAutoPropertyAccessor.Global
        public string UniqueId { get; private set; }
        public string Title { get; private set; }
        public string Subtitle { get; private set; }
        public string Description { get; private set; }
        public string ImagePath { get; private set; }
        public ObservableCollection<StationInfo> Items { get; private set; }
        // ReSharper restore MemberCanBePrivate.Global
        // ReSharper restore UnusedAutoPropertyAccessor.Global

        public override string ToString()
        {
            return Title;
        }
    }

}
